﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Runtime.Intrinsics.X86;

namespace Coldairarrow.Entity.Interface
{
    /// <summary>
    /// 亚马逊多渠道订单退换货信息
    /// </summary>
    /// 

    public class OrderRetDTO
    {
        public string code { get; set; }
        public string message { get; set; }
        public string request_id { get; set; }
        public string response_time { get; set; }
        public int total { get; set; }
        public List<OrderRet> data { get; set; }

    }

    public class OrderRet
    {
        public string RowId { get; set; }
        public string ID { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string remark { get; set; }
        /// <summary>
        /// 电话
        /// </summary>
        public string phone { get; set; }
        /// <summary>
        /// 店铺id
        /// </summary>
        public string sid { get; set; }


        /// <summary>
        /// 店铺名称
        /// </summary>
        public string store_name { get; set; }

        /// <summary>
        /// 亚马逊订单号	
        /// </summary>
        public string amazon_order_id { get; set; }
        /// <summary>
        /// 卖家订单号
        /// </summary>
        public string seller_fulfillment_order_id { get; set; }
        /// <summary>
        /// 装箱单备注	
        /// </summary>
        public string displayable_order_comment { get; set; }
        /// <summary>
        /// 销售渠道	
        /// </summary>
        public string sales_channel { get; set; }
        /// <summary>
        /// 提交时间
        /// </summary>
        public string purchase_date_local { get; set; }

        /// <summary>
        /// 发货时间（站点时间）
        /// </summary>
        public string ship_date { get; set; }

        /// <summary>
        /// 发货时间（utc时间）
        /// </summary>
        public string ship_date_utc { get; set; }

        /// <summary>
        /// 配送服务	
        /// </summary>
        public string speed_category { get; set; }

        /// <summary>
        /// 退货信息	
        /// </summary>
        public order_return_replace_tab order_return_replace_tab { get; set; }
    }

    public class order_return_replace_tab
    {
       



        /// <summary>
        /// 退货信息	
        /// </summary>
        public List<return_tab> return_tab { get; set; }

        /// <summary>
        /// 换货信息
        /// </summary>
        public List<replace_tab> replace_tab { get; set; }

    }

    public class return_tab
    {
        public string RowId { get; set; }
        public string ID { get; set; }

        /// <summary>
        /// 亚马逊订单号	
        /// </summary>
        public string amazon_order_id { get; set; }
        /// <summary>
        /// 卖家订单号
        /// </summary>
        public string seller_fulfillment_order_id { get; set; }

        /// <summary>
        /// 店铺id	
        /// </summary>
        public string sid { get; set; }
        /// <summary>
        /// 订单号	
        /// </summary>
        public string order_id { get; set; }
        /// <summary>
        /// 退货时间	
        /// </summary>
        public string return_date { get; set; }
        /// <summary>
        /// msku	
        /// </summary>
        public string msku { get; set; }
        /// <summary>
        /// asin	
        /// </summary>
        public string asin { get; set; }
        /// <summary>
        /// 退货数量	
        /// </summary>
        public string return_quantity { get; set; }
        /// <summary>
        /// 退货原因	
        /// </summary>
        public string return_reason { get; set; }
        /// <summary>
        /// 退货状态	
        /// </summary>
        public string return_status { get; set; }
        /// <summary>
        /// lpn编号	
        /// </summary>
        public string lpn { get; set; }
        /// <summary>
        /// 买家备注	
        /// </summary>
        public string customer_comments { get; set; }
        /// <summary>
        /// 本地产品sku	
        /// </summary>
        public string local_sku { get; set; }

        /// <summary>
        /// 拷贝该对象
        /// </summary>
        /// <returns></returns>
        public return_tab Clone()
        {
            return (return_tab)this.MemberwiseClone();
        }

    }

    public class replace_tab
    {
        /// <summary>
        /// 换货原因	
        /// </summary>
        public string replacement_reason { get; set; }

        /// <summary>
        /// msku	
        /// </summary>
        public string msku { get; set; }
        /// <summary>
        /// asin地址
        /// </summary>
        public string asin_url { get; set; }
        /// <summary>
        /// 换货时间
        /// </summary>
        public string shipment_date { get; set; }

    }


}
